import { create } from 'zustand';
import { persist } from 'zustand/middleware';
import { LogStore } from './type';

const useStore = create<LogStore>()(
    persist(
        (set) => ({
            is_txt: false,
            setis_txt: (is_txt: boolean) => set(() => ({ is_txt })),
            is_captions: false,
            setis_captions: (is_captions: boolean) => set(() => ({ is_captions })),
        }),
        {
            name: 'is_config',
        }
    )
);

export default useStore; 